<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html;charset=utf-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title></title>
		<%@ include file="/jsp/front/common/header.jsp"%>
		<link type="text/css" href="<c:url value="/images/statics/style.css"/>" rel="stylesheet" />


<link type="text/css" rel="stylesheet" href="<c:url value="/theme/first/css.css"/>" />
<link type="text/css" rel="stylesheet" href="<c:url value="/theme/red/header.css"/>" />
	</head>
	<body>
		<%@ include file="/jsp/front/common/nav.jsp"%>

		<div id="MainWrap">
			<div class="PassportWrap">
				<form class="signupform" action="<c:url value='login.do'/>" method="post" id="signup_form">
					<div class="RegisterWrap">
						<h4>
							已注册用户，请登录
						</h4>
						<div class="intro">
							<div class="customMessages">
								如果您已是本站会员，请登录
							</div>
						</div>
						<div class="form">
							<input type="hidden" name="forward" />
							<table width="100%" cellspacing="0" cellpadding="0" border="0">
								<tbody>
									<tr>
										<th>
											<i>*</i>用户名：
										</th>
										<td>
											<input type="text" class="x-input inputstyle" name="member.uname" />
											<a href="signup.do" style="margin-left: 6px;">立即注册</a>
										</td>
									</tr>
									<tr>
										<th>
											<i>*</i>密码：
										</th>
										<td>
											<input type="password" class="x-input inputstyle" name="member.password" />
											<a href="" style="margin-left: 6px;">忘记密码？</a>
										</td>
									</tr>
									<tr>
										<th></th>
										<td>
											<input type="submit" value="登录" class="actbtn btn-login" />
										</td>
									</tr>
								</tbody>
							</table>
						</div>
					</div>
				</form>


			</div>
		</div>



		<%@ include file="/jsp/front/common/footer.jsp"%>
		<script type="text/javascript" src="<c:url value='/scripts/jquery-1.4.2.js'/>"></script>
		<script type="text/javascript" src="<c:url value='/scripts/jquery.validate.js'/>"></script>
		<script type="text/javascript">
	$(document).ready(function() {
		var validator = $("#signup_form").validate( {
			errorElement : "div",
			errorClass : "valierror",
			onfocusout : false,
			rules : {
				'member.uname' : {
					required : true,
					email : true
				},
				'member.password' : {
					required : true,
					minlength : 6
				}

			},
			messages : {

				'member.uname' : {
					required : "必填字段",
					email : '请输入EMAIL，如abc@hubaobei.com'
				},
				'member.password' : {
					required : "必填字段",
					minlength : '最少6位'
				}
			},
			errorPlacement : function(error, element) {
				element.removeClass('valierror');
				error.appendTo(element.parent());

			},

			success : function(div) {
				$(div).remove();
			}
		});
	});
</script>
	</body>
</html>